package com.circle.rest.modular.nt.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;

/**
 * <p>
 * 通知记录
 * </p>
 *
 * @author 赵航
 * @since 2019-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("nt_history")
@ApiModel(value="History对象", description="通知记录")
public class History implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "通知编号")
    private String contentId;

    @ApiModelProperty(value = "发送部门 最多10个部门")
    private String dept;

    @ApiModelProperty(value = "发送角色 最多10个角色")
    private String role;

    @ApiModelProperty(value = "发送用户 最多50个用户")
    private String include;

    @ApiModelProperty(value = "不发送用户 最多50个用户")
    private String notInclude;

    @ApiModelProperty(value = "状态(1：启用  2：冻结 ）")
    private Integer status;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer deleteState;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;


}
